import { defHttp } from "@/utils/http";
import { baseUrlApi } from "./utils";

export type DetailResult = {
    code: number;
    data: any;
    msg: string;
  };
  
  /** 组织树员工信息列表 */
  export const getDepartmentTreeList = (data?: object) => {
    return defHttp.post<DetailResult>({
      url: baseUrlApi("/user/department/treelist"),
      data
    });
  };

  /** 外部人员信息列表 */
  export const getExternalList = (data?: object) => {
    return defHttp.post<DetailResult>({
      url: baseUrlApi("/user/external/list"),
      data
    });
  };